<!DOCTYPE html>
<html>
<head>
    <% include ../common/meta.ejs %>
    <% include ../common/public.ejs %>
</head>
<body>
<% include ../common/header.ejs %>

<div class="container">
    <div class="dolphin-row main page-content">
        <div class="page-header">
            <h5 class="content-title">数据字典</h5>
            <div class="pull-left">
                <ul class="fl">
                    <li>
                        <button class="btn btn-block btn-info newEnum"><i class="fui-plus-circle icon-menu"></i></i>
                            <span>新建数据</span>
                        </button>
                    </li>
                </ul>
            </div>
        </div>

        <div class="dolphin-col-24">
            <div class="row">
                <div class="col-md-6">
                    <div id="enumList"></div>
                </div>
                <div class="col-md-6">
                    <div id="enumItemList"></div>
                </div>
            </div>
        </div>
    </div>
</div>

<div class="modal fade" id="dataModal" tabindex="-1" role="dialog" aria-labelledby="dataModalLabel">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
                            aria-hidden="true">&times;</span></button>
                <h4 class="modal-title" id="dataModalLabel">数据字典维护</h4>

            </div>
            <div class="modal-body">
                <div>
                    <!-- Nav tabs -->
                    <ul class="nav nav-tabs" role="tablist">
                        <li role="presentation" class="active"><a href="#home" aria-controls="home" role="tab"
                                                                  data-toggle="tab">字典信息</a></li>
                        <li role="presentation"><a href="#profile" aria-controls="profile" role="tab" data-toggle="tab">枚举项</a>
                        </li>
                    </ul>
                    <!-- Tab panes -->
                    <div class="tab-content">
                        <div role="tabpanel" class="tab-pane active" id="home">
                            <form class="form-horizontal edit-form">
                                <input type="hidden" class="form-control" name="id">
                                <div class="form-group">
                                    <label class="col-md-offset-1 col-md-2 control-label">数据名称</label>
                                    <div class="col-md-6">
                                        <input class="form-control" name="name" type="text" dol-validate="required">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-md-offset-1 col-md-2 control-label">数据编码</label>
                                    <div class="col-md-6">
                                        <input class="form-control" name="code" type="text" dol-validate="required">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-md-offset-1 col-md-2 control-label">是否启用</label>
                                    <div class="col-md-6">
                                        <select class="form-control" name="status" dol-validate="required">
                                            <option value="1">是</option>
                                            <option value="0">否</option>
                                        </select>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-md-offset-1 col-md-2 control-label">备注信息</label>
                                    <div class="col-md-6">
                                        <textarea class="form-control" name="remark"></textarea>
                                    </div>
                                </div>
                            </form>
                        </div>
                        <div role="tabpanel" class="tab-pane" id="profile">
                            <form class="edit-form">
                                <div id="enum_option_list">
                                </div>
                            </form>
                        </div>
                    </div>
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-primary modelSave">确定</button>
                <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
            </div>
        </div>
    </div>
</div>

<% include ../common/footer.ejs %>
</body>
</html>
